package Fruit;

public class FruitTest {
    public static void main(String[] args) {
        Fruit fruit1 = new Fruit();
        fruit1.setName("草莓");
        fruit1.setArea("南美");
        fruit1.setPrice(100);
        System.out.println("水果名：" + fruit1.getName() + "，产地：" + fruit1.getArea() + "，单价：" + fruit1.getPrice());

        Fruit fruit2 = new Fruit();
        fruit2.setName("石榴");
        fruit2.setArea("陕西");
        fruit2.setPrice(1000);
        System.out.println("水果名：" + fruit2.getName() + "，产地：" + fruit2.getArea() + "，单价：" + fruit2.getPrice());

        Fruit fruit3 = new Fruit();
        fruit3.setName("橘子");
        fruit3.setArea("广西梧州");
        fruit3.setPrice(10000);
        System.out.println("水果名：" + fruit3.getName() + "，产地：" + fruit3.getArea() + "，单价：" + fruit3.getPrice());
    }
}

